package core.imust.com.imustcore.bean;

import java.util.List;

/**
 * gson库可以将json里面的值取出来
 * 为你创建一个指定java类的对象
 * 再把值给放进去
 * json中的变量名必须跟java类变量名一样
 * GsonFormat是一个优秀的studio插件
 * 1，Setting  gson
 *   2, public field 公有的成员变量，提高gson的解析速度
 *   3, 把生成代码中的?改成String
 */

public class PicData {
    public String countcommenturl;
    public String more;
    public String title;
    public List<NewsBean> news;
    public List<String> topic;

    /*
    以后集合中的NewsBean就代表一个组图数据
     */
    public static class NewsBean {
        /**
         * comment : true
         * commentlist : http://jrtt.qianlong.com/static/api/news/10003/72/82772/comment_1.json
         * commenturl : http://jrtt.qianlong.com/client/user/newComment/82772
         * id : 82772
         * largeimage : http://jrtt.qianlong.com/static/images/2014/11/07/70/476518773M7R.jpg
         * listimage : http://10.0.2.2:8080/jrtt/photos/images/46728356JDGO.jpg
         * pubdate : 2014-11-07 11:40
         * smallimage : http://jrtt.qianlong.com/static/images/2014/11/07/79/485753989TVL.jpg
         * title : 北京·APEC绚丽之夜
         * type : news
         * url : http://jrtt.qianlong.com/static/html/2014/11/07/7743665E4E6B10766F26.html
         */

        public boolean comment;
        public String commentlist;
        public String commenturl;
        public int id;
        public String largeimage;
        public String listimage;
        public String pubdate;
        public String smallimage;
        public String title;
        public String type;
        public String url;
    }
}
